package com.sikaryofficial.common.core.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author : qinjinyuan
 * @desc : 品牌枚举类型
 * @date : 2023/11/04 10:08
 */
@Getter
@AllArgsConstructor
public enum BrandEnum {
    HISMK("HiSMK", "HiSMK 平台",0);
    private final String code;
    private final String desc;
    private final Integer value;

    public static BrandEnum getNameByCode(String code) {
        return Arrays.stream(BrandEnum.values())
                .filter(channelEnum -> channelEnum.getCode().equals(code))
                .findFirst().orElse(null);
    }

}
